package com.evanst.bouncer;

public class GameWorld {
	private static final int MAX_PLAYERS = 2;
	private static final int WIDTH = 26;
	private static final int HEIGHT = 15;
	
	private Player[] players = null;
	private Ball ball = null;
	
	
	public void initialize() {
		players = new Player[MAX_PLAYERS];
		ball = new Ball();
		for (int i = 0;i < MAX_PLAYERS;i++) {
			players[i] = new Player();
		}
		players[0].setX(0);
		players[0].setY(8);
		players[1].setX(26);
		players[1].setY(8);
		ball.setX(13);
		ball.setY(8);
	}
	
	public static final int getWidth() {
		return WIDTH;
	}
	
	public static final int getHeight() {
		return HEIGHT;
	}
	
	public static final int getMaxPlayerCount() {
		return MAX_PLAYERS;
	}
	
	public Ball getBall() {
		return ball;
	}
	
	public Player getPlayer(int index) {
		return players[index];
	}
	
}
